package com.jdk8.parameter_01;

public class AppleFancyFormatterImpl implements AppleFormatter {
    @Override
    public String accept(Apple apple) {
        String str = apple.getWeight() > 150.00 ? "heavy" : "light";
        return apple.getKinds() + " have " + apple.getWeight() + "g and is " + str;
    }
}
